home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6401 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: fsgm01.fnal.gov!not-for-mail
  2. From: b91926@fsgm01.fnal.gov (David Sachs)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Q: Unresolved externnal "_main"?
  5. Date: 7 Feb 1996 17:02:48 -0600
  6. Organization: FERMILAB, Batavia, IL
  7. Message-ID: <4fbb2o$mfd@fsgm01.fnal.gov>
  8. References: <3118FFAF.B80@ni.net>
  9. Reply-To: sachs@fnal.fnal.gov
  10. NNTP-Posting-Host: fsgm01.fnal.gov
  11. X-Newsreader: NN version 6.5.0 #9 (NOV)
  12.  
  13. Jeff Nikodym <jeffnik@ni.net> writes:
  14.  
  15. >As you might be able to tell, Im just learning C++.
  16. >Im using MSVC2.0, and whenever I try to compile any program that is not 
  17. >made with the "Application Wizard", during the link phase I get an 
  18. >error: "unresolved external ... '_main'". Might someone have an insight 
  19. >as to what Im doing wrong?
  20.  
  21. All C and C++ programs must include a function named "main". In
  22. programs written for Windows, function main is normally loaded
  23. from a library, rather that as part of the user supplied code.
  24.  
  25. Your C++ compiler is improperly configured, so that the proper
  26. libraries are not searched.
  27. -- 
  28. * IRS, IRS, lord of the federal tax, checking all income and every deduction, *
  29. * mailing out form 10 40, penalizing noncompliers, regulating, and auditing.  *
  30. David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
  31. Voice: 1 708 840 3942      Deparment Fax: 1 708 840 3785
  32.